import React, { PureComponent } from 'react';
import {
    Row,
    Col,
    Form,
    Input,
} from 'antd';
const FormItem = Form.Item;
const formItemLayout = {
    // 抽屉里面Form。二列的布局比例
    labelCol: {
        span: 6
    },
    wrapperCol: {
        span: 18
    }
};
class AddFrom extends PureComponent {
    render() {
        const {
            formData,
            form: { getFieldDecorator },
        } = this.props;
        return (
            <Form >
                <Row>
                    <Col span={24}>
                        <FormItem {...formItemLayout} label={'编辑交期'}>
                            {getFieldDecorator('redactDate', {
                                getValueFromEvent: (event) => {
                                    return event.target.value.replace(/\s+/g, "")
                                },
                            })(
                                <Input />
                            )}
                        </FormItem>
                    </Col>
                </Row>
            </Form>
        )
    }
}
export default Form.create()(AddFrom);